namespace RMM.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class add_massagite : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.RMM_MassagistExtend",
                c => new
                    {
                        Id = c.Long(nullable: false, identity: true),
                        UserId = c.Long(nullable: false),
                        StartTime = c.DateTime(nullable: false),
                        EndTime = c.DateTime(nullable: false),
                        Status = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.RMM_Massagist",
                c => new
                    {
                        Id = c.Long(nullable: false, identity: true),
                        UserId = c.Long(nullable: false),
                        Sex = c.Int(nullable: false),
                        UserHead = c.String(),
                        Address = c.String(),
                        UserName = c.String(),
                        Status = c.Int(nullable: false),
                        Mobile = c.String(),
                        ShopId = c.Long(nullable: false),
                        GoodAt = c.String(),
                    })
                .PrimaryKey(t => t.Id);
            
            DropColumn("dbo.RMM_User", "RealName");
            DropColumn("dbo.RMM_User", "ShopId");
            DropColumn("dbo.RMM_User", "GoodAt");
        }
        
        public override void Down()
        {
            AddColumn("dbo.RMM_User", "GoodAt", c => c.String());
            AddColumn("dbo.RMM_User", "ShopId", c => c.Long(nullable: false));
            AddColumn("dbo.RMM_User", "RealName", c => c.String());
            DropTable("dbo.RMM_Massagist");
            DropTable("dbo.RMM_MassagistExtend");
        }
    }
}
